import request from '@/router/axios';


//列表
export const fmeaeffectList = (current, size, params) => {
  return request({
    url: '/api/hg-public/fmearesult/page',
    method: 'get',
    params: {
      current,
      size,
      ...params
    }
  })
}
//添加
export const addFmeaeffect = (mold) => {
  return request({
    url: '/api/hg-public/fmearesult/submit',
    method: 'post',
    data: mold
  })
}

//编辑时获取数据
export const fmeaeffectDetail = (id) => {
  return request({
    url: '/api/hg-public/fmearesult/detail',
    method: 'get',
    params: {
      id
    }
  })
}

//编辑
export const updateFmeaeffect = (mold) => {
  return request({
    url: '/api/hg-public/fmearesult/submit',
    method: 'post',
    data: mold
  })
}

//删除
export const removeFmeaeffect = (ids) => {
  return request({
    url: '/api/hg-public/fmearesult/remove',
    method: 'post',
    params: {
      ids,
    }
  })
}

